﻿using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace OperationPlugins.WebApp
{
    public class MvcApplication : HttpApplication
    {
        protected void Application_Start()
        {
            ModelBinders.Binders.DefaultBinder = new PerpetuumSoft.Knockout.KnockoutModelBinder();
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            // Initialize the framework by using web.config
            OperationPluginsEnvironment.InitializeByUsingConfigFile();
        }
    }
}
